﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            Class1 user01 = new Class1();
            Class1 user02 = new Class1(2,"关羽","行政部");

            user01.Id = 1;
            user01.Name = "西欧澳门";
            user01.Pub = "财务部";

            user01.print();
            user02.print();

            Class2 Area = new Class2();
            Console.WriteLine("圆面积为："+ Area.area (10));
            Console.WriteLine("长方形面积为：" + Area.area(10,10));

            Class3 rsult = new Class3();
            Console.WriteLine("两个整数相加结果为：{0}",rsult.computers(5,6));
            Console.WriteLine("两个小数相加结果为：{0}", rsult.computers(5.5, 6.6));
            Console.WriteLine("两个字符串相加结果为：{0}", rsult.computers("abc", "def"));
            Console.WriteLine("指定数相加结果为：{0}", rsult.computers(4));

        }
    }
}
